package com.cafe.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.malamute.core.entity.BaseEntity;

/**
 * @Description 评论实体
 * @version v1.0
 */
@Entity
@Table(name = "T_CAFE_REMARK")
public class Remark extends BaseEntity {

	@ManyToOne(targetEntity = OrderProduct.class, fetch = FetchType.EAGER, cascade = CascadeType.ALL)
	@JoinColumn(name = "op_id")
	private OrderProduct orderProduct;

	private String message;// 回复内容

	/**
	 * 获取message
	 * 
	 * @return message
	 */

	public String getMessage() {
		return message;
	}

	/**
	 * 设置message
	 * 
	 * @param message
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	public OrderProduct getOrderProduct() {
		return orderProduct;
	}

	public void setOrderProduct(OrderProduct orderProduct) {
		this.orderProduct = orderProduct;
	}

}
